<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
  <title>大理州县域电商系统</title>
  <meta name="keywords" content="大理州县域电商系统" />
  <meta name="description" content="大理州县域电商系统" />
  <link href="__STATIC__/home/css/common.css" rel="stylesheet"/>
  <link href="__STATIC__/home/css/login.css" rel="stylesheet"/>
  <script src="__STATIC__/home/js/jquery.min.js"></script>
  <script src="__STATIC__/home/js/TouchSlide.1.1.js"></script>
  <script type="text/javascript" src="__STATIC__/home/js/banner.js"></script>

<style type="text/css">
.category_list li input,select{
   font-size: 20px;
}
</style>
</head>

  <!-- <div class="site_title pt140"> -->
  <!-- <div class="site_icon Fleft"></div> -->
  <div class="site_font" style="font-size: 24px;margin:100px;"><b>账号绑定</b></div>
  <!-- </div> -->
  <!-- <form class="layui-form" action="" lay-filter="form"> -->
  <div class="login">
    <dl>
    <dt>账号</dt>
    <dd><input name="username" id="username" lay-verify="username" type="text" placeholder="请输入帐号"/></dd>
    </dl>
    <div class="login_button">
      <!-- <a href="#"> -->
      <input type="button" id="subtn" lay-submit="" lay-filter="sub" onclick="checkEnrollData()" value="提交" />
      <!-- </a> -->
    </div>  
  </div>
  <!-- </form> -->

<script type="text/javascript">

  function checkEnrollData(){
    var username = $("#username").attr('value');
    // console.log(aid);return;
    if(!username){
      alert('请输入账号');return false;
    }
    // if(!(/^1[3456789]\d{9}$/.test(phone))){ 
    //     alert("手机号码有误");return false; 
    // }
    if(!confirm("确认提交？")){
      return false;
    }
    var data = {username:username};
    $.post("{:url('home/login/bind')}",data,function(e){
          // console.log(e);return;
          if(e.code == 1){
            alert(e.msg);
            window.location.href = e.url;
          }else{
            alert(e.msg);
          }
      });
  }
</script>

</body>

</html>